<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isLogged: false // 控制登录状态
    }
  },
  created() {
    // 检查登录状态
    this.checkLoginStatus();
  },
  methods: {
    checkLoginStatus() {
      // 从 localStorage 获取登录状态
      this.isLogged = localStorage.getItem('isLoggedIn') === 'true';
    }
  }
}
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>